<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="topic1">
  <title>ALTER TEXT SEARCH PARSER</title>
  <body>
    <section>
      <title>Description</title>
      <p id="sql_command_desc">Changes the definition of a text search parser.</p>
    </section>
    <section>
      <title>Synopsis</title>
    </section>
    <codeblock id="sql_command_synopsis">ALTER TEXT SEARCH PARSER <varname>name</varname> RENAME TO <varname>new_name</varname>
ALTER TEXT SEARCH PARSER <varname>name</varname> SET SCHEMA <varname>new_schema</varname></codeblock>
    <section id="section3">
      <title>Description</title>
      <p><codeph>ALTER TEXT SEARCH PARSER</codeph> changes the definition of a text search parser.
        Currently, the only supported functionality is to change the parser's name.</p>
      <p>You must be a superuser to use <codeph>ALTER TEXT SEARCH PARSER</codeph>.</p>
    </section>
    <section id="section4">
      <title>Parameters</title>
      <parml>
        <plentry>
          <pt><varname>name</varname></pt>
          <pd>The name (optionally schema-qualified) of an existing text search parser.</pd>
        </plentry>
        <plentry>
          <pt><varname>new_name</varname></pt>
          <pd>The new name of the text search parser.</pd>
        </plentry>
        <plentry>
          <pt><varname>new_schema</varname></pt>
          <pd>The new schema for the text search parser.</pd>
        </plentry>
      </parml>
    </section>
    <section id="section7">
      <title>Compatibility</title>
      <p>There is no <codeph>ALTER TEXT SEARCH PARSER</codeph> statement in the SQL standard.</p>
    </section>
    <section id="section8">
      <title>See Also</title>
      <p><codeph><xref href="CREATE_TEXT_SEARCH_PARSER.xml#topic1" type="topic" format="dita"
          /></codeph>, <codeph><xref href="DROP_TEXT_SEARCH_PARSER.xml#topic1" type="topic"
            format="dita"/></codeph></p>
    </section>
  </body>
</topic>
